<!DOCTYPE html>
<html lang="en">
  <head>
    <meta name="generator"
    content="HTML Tidy for HTML5 (experimental) for Windows https://github.com/w3c/tidy-html5/tree/c63cc39" />
    <meta charset="utf-8" />
    <title>后台管理-单群配置</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta content="A fully featured admin theme which can be used to build CRM, CMS, etc." name="description" />
    <meta content="Coderthemes" name="author" />
    <!-- App favicon -->
    <link rel="shortcut icon" href="/public/assets/images/favicon.ico" />
    <!-- third party css -->
    <link href="/public/assets/css/vendor/dataTables.bootstrap4.css" rel="stylesheet" type="text/css" />
    <link href="/public/assets/css/vendor/responsive.bootstrap4.css" rel="stylesheet" type="text/css" />
    <!-- third party css end -->
    <link rel="stylesheet" type="text/css" href="/public/static/index/layui/css/layui.css" />
    <!-- App css -->
    <link href="/public/assets/css/icons.min.css" rel="stylesheet" type="text/css" />
    <link href="/public/assets/css/app.min.css" rel="stylesheet" type="text/css" />
  </head>
  <body>
    <!-- Begin page -->
    <div class="wrapper">
    <!-- ========== Left Sidebar Start ========== -->
    {include file="public/left" /} 
    <!-- Left Sidebar End -->
     
    <!-- ============================================================== -->
     
    <!-- Start Page Content here -->
     
    <!-- ============================================================== -->
    <div class="content-page">
      <div class="content">
      <!-- Topbar Start -->
      {include file="public/top" /} 
      <!-- end Topbar -->
       
      <!-- Start Content-->
      <div class="container-fluid">
        <!-- start page title -->
        <div class="row">
          <div class="col-12">
            <div class="page-title-box">
              <div class="page-title-right">
                <ol class="breadcrumb m-0">
                  <li class="breadcrumb-item">
                    <a href="admin">首页</a>
                  </li>
                  <li class="breadcrumb-item active">
                    <a href="javascript:%20void(0);">单群配置</a>
                  </li>
                </ol>
              </div>
              <h4 class="page-title">单群配置（这里修改的是所有代理一键生成的内容）</h4>
            </div>
          </div>
        </div>
        <!-- end page title -->
        <div class="row">
          <div class="col-xl-6" style="width:100%;flex: 0 0 100%;max-width: 100%;">
            <div class="card">
              <div class="card-body">
               
               
                {include file="public/daohang" /} 
               
               
               
                <div class="tab-content">
                  <div class="tab-pane show active" id="home">
                  
                    <div class="row">
                      <div class="col-12">
                        <div class="card">
                          <div class="card-body">
                           
                            <form action="" method="post">
                              <div class="form-group">
                              <label for="inputAddress2" class="col-form-label">页面标题</label> 
                              <input type="text" class="form-control" name="title" value="{$name.title}" /></div>
                              <div class="form-group">
                              <label for="inputAddress2" class="col-form-label">底部技术支持</label> 
                              <input type="text" class="form-control" name="jishuzhichi" value="{$name.jishuzhichi}" /></div>
                              <div class="form-group">
                              <label for="inputAddress2" class="col-form-label">技术支持外链</label> 
                              <input type="text" class="form-control" name="zclink" value="{$name.zclink}" /></div>
                              <div class="form-group mb-3">
                              <label for="example-color">入群按钮颜色</label> 
                              <input class="form-control" id="example-color" type="color" name="ruquncolor"
                              value="{$name.ruquncolor}" /></div>
                                     <div class="form-group">
                              <label for="inputAddress2" class="col-form-label">入群按钮文字</label> 
                              <input type="text" class="form-control" name="ruqunwenzi" value="{$name.ruqunwenzi}" /></div>
                              <div class="form-group mb-3">
                              <label for="example-select">群类型</label> 
                              <select class="form-control" name="type">
                                <option value="1" name="type">付费入群</option>
                                <option value="2" name="type">免费入群</option>
                                <option value="3" name="type">直接跳转外链</option>
                              </select></div>
                              <div class="form-group mb-3">
                              <label for="example-select">商品价格类型</label> 
                              <select class="form-control" name="prtype">
                                <option value="1" name="prtype">一口价</option>
                                <option value="2" name="prtype">随机价格</option>
                              </select></div>
                              <div class="form-group">
                              <label for="inputAddress2" class="col-form-label">商品名称</label> 
                              <input type="text" class="form-control" name="sname" value="{$name.sname}" /></div>
                              <div class="form-group">
                              <label for="inputAddress2" class="col-form-label">付费金额</label> 
                              <input type="text" class="form-control" name="price" value="{$name.price}" /></div>
                              <div class="form-group">
                              <label for="inputAddress2" class="col-form-label">付费后入群按钮名称</label> 
                              <input type="text" class="form-control" name="fubutt" value="{$name.fubutt}" /></div>
                              <div class="form-group mb-3">
                              <label for="example-color">付费后按钮颜色</label> 
                              <input class="form-control" id="example-color" type="color" name="fucolor"
                              value="{$name.fucolor}" /></div>
                              <button type="submit" class="btn btn-primary">修改</button>
                            </form>
                          </div>
                          <!-- end card-body -->
                        </div>
                        <!-- end card-->
                      </div>
                      <!-- end col -->
                    </div>
                  </div>
                
            
            
           
             
                  
                  
                </div>
              </div>
              <!-- end card-body-->
            </div>
            <!-- end card-->
          </div>
          <!-- end col -->
        </div>
        <!-- end row-->
      </div>
      <!-- content -->
      <!-- Footer Start -->
      {include file="public/foot" /} 
      <!-- end Footer --></div>
      <!-- ============================================================== -->
      <!-- End Page content -->
      <!-- ============================================================== -->
    </div>
    <!-- END wrapper -->
    <!-- Right Sidebar -->
    <div class="right-bar">
      <div class="rightbar-title">
        <a href="javascript:void(0);" class="right-bar-toggle float-right"></a>
        <h5 class="m-0">Settings</h5>
      </div>
      <div class="slimscroll-menu rightbar-content">
        <!-- Settings -->
        <hr class="mt-0" />
        <h5 class="pl-3">Basic Settings</h5>
        <hr class="mb-0" />
        <div class="p-3">
          <div class="custom-control custom-checkbox mb-2">
          <input type="checkbox" class="custom-control-input" id="notifications-check" checked="checked" /> 
          <label class="custom-control-label" for="notifications-check">Notifications</label></div>
          <div class="custom-control custom-checkbox mb-2">
          <input type="checkbox" class="custom-control-input" id="api-access-check" /> 
          <label class="custom-control-label" for="api-access-check">API Access</label></div>
          <div class="custom-control custom-checkbox mb-2">
          <input type="checkbox" class="custom-control-input" id="auto-updates-check" checked="checked" /> 
          <label class="custom-control-label" for="auto-updates-check">Auto Updates</label></div>
          <div class="custom-control custom-checkbox mb-2">
          <input type="checkbox" class="custom-control-input" id="online-status-check" checked="checked" /> 
          <label class="custom-control-label" for="online-status-check">Online Status</label></div>
          <div class="custom-control custom-checkbox mb-2">
          <input type="checkbox" class="custom-control-input" id="auto-payout-check" /> 
          <label class="custom-control-label" for="auto-payout-check">Auto Payout</label></div>
        </div>
        <!-- Timeline -->
        <hr class="mt-0" />
        <h5 class="pl-3">Recent Activity</h5>
        <hr class="mb-0" />
        <div class="pl-2 pr-2">
          <div class="timeline-alt">
            <div class="timeline-item">
              <div class="timeline-item-info">
              <a href="#" class="text-info font-weight-bold mb-1 d-block">You sold an item</a> 
              <small>Paul Burgess just purchased “Hyper - Admin Dashboard”!</small>
              <p class="mb-0 pb-2">
                <small class="text-muted">5 minutes ago</small>
              </p></div>
            </div>
            <div class="timeline-item">
              <div class="timeline-item-info">
              <a href="#" class="text-primary font-weight-bold mb-1 d-block">Product on the Bootstrap Market</a> 
              <small>Dave Gamache added 
              <span class="font-weight-bold">Admin Dashboard</span></small>
              <p class="mb-0 pb-2">
                <small class="text-muted">30 minutes ago</small>
              </p></div>
            </div>
            <div class="timeline-item">
              <div class="timeline-item-info">
              <a href="#" class="text-info font-weight-bold mb-1 d-block">Robert Delaney</a> 
              <small>Send you message 
              <span class="font-weight-bold">&quot;Are you there?&quot;</span></small>
              <p class="mb-0 pb-2">
                <small class="text-muted">2 hours ago</small>
              </p></div>
            </div>
            <div class="timeline-item">
              <div class="timeline-item-info">
              <a href="#" class="text-primary font-weight-bold mb-1 d-block">Audrey Tobey</a> 
              <small>Uploaded a photo 
              <span class="font-weight-bold">&quot;Error.jpg&quot;</span></small>
              <p class="mb-0 pb-2">
                <small class="text-muted">14 hours ago</small>
              </p></div>
            </div>
            <div class="timeline-item">
              <div class="timeline-item-info">
              <a href="#" class="text-info font-weight-bold mb-1 d-block">You sold an item</a> 
              <small>Paul Burgess just purchased “Hyper - Admin Dashboard”!</small>
              <p class="mb-0 pb-2">
                <small class="text-muted">1 day ago</small>
              </p></div>
            </div>
          </div>
        </div>
      </div>
    </div>
         <script type="text/javascript" src="/public/static/admin2/ueditor/1.4.3/ueditor.config.js"></script>
    <script type="text/javascript" src="/public/static/admin2/ueditor/1.4.3/ueditor.all.min.js"> </script>
    <script type="text/javascript" src="/public/static/admin2/ueditor/1.4.3/lang/zh-cn/zh-cn.js"></script>
 <script type="text/javascript" src="/public/static/index/layui/layui.js"></script>
  <script>
    var ue = UE.getEditor('editor');
  </script>
    <script>
    /*-删除时候确认*/
    function public_del(url){
        layui.use('layer', function(){
            var layer = layui.layer;
            layer.confirm('确认要删除吗？',function(index){
                window.location.href=url;
            });
        });
    }


    layui.use('upload', function () {
      var upload = layui.upload;

      //执行上传实例
      var uploadInst = upload.render({
        elem: '#test1' //绑定元素
        , url: '/admin/uploader/upload' //上传接口
        , done: function (res) {
          //上传完毕回调
          console.log(res);
          //path = JSON.stringify(res.path);
          //path = path.replace("\"", "").replace("\"", "");
          $(".public_thumb_input").val(res.path);
          $(".public_thumb").attr("src", res.path);
          $(".public_thumb_box").css("display", "block");
        }
        , error: function () {
          //请求异常回调
        }
      });
    });


    //实时删除图片
    $(".delete_img").click(function(){
        var path=$(this).parent().children(".public_thumb_input").val();
        var url="/admin/uploader/delete_img";
        var model = $(this).parent().attr('attr-model');//编辑默认删除图片
        var id=$("input[name='id']").val();//编辑默认删除图片
        postData = {'path':path,'model':model,'id':id};
        $.post(url,postData,function(result){
          result=JSON.parse(result);
          if(result.status==1){
            $(".public_thumb_input").val("");
            $(".public_thumb").attr("src", "");
            $(".public_thumb_box").css("display", "none");
            layui.use('layer', function(){
              var layer = layui.layer;
              layer.msg('已经删除成功！');
            }); 
          }
        });
    });

    //排序
    $('.listorder input').blur(function() {
    // 编写我们的抛送的逻辑
    //获取主键id
    var id = $(this).attr('attr-id');
    var model=$(this).attr('attr-model');
    // 获取排序的值
    var listorder = $(this).val();
    if(!listorder){
      return;
    }
    var postData = {

        'id' : id,
        'model':model,
        'listorder':listorder,
    };

    var url = "/admin/base/listorder";
    // 抛送http
    $.post(url, postData, function(result){
        // 逻辑
        if(result.code == 1) {
            location.href=result.data;
        }else {
            alert(result.msg);
        }
    },"json");


});

    </script>     <!-- App js -->
        <script src="/public/assets/js/app.min.js"></script>

        <!-- third party js -->
        <script src="/public/assets/js/vendor/jquery.dataTables.min.js"></script>
        <script src="/public/assets/js/vendor/dataTables.bootstrap4.js"></script>
        <script src="/public/assets/js/vendor/dataTables.responsive.min.js"></script>
        <script src="/public/assets/js/vendor/responsive.bootstrap4.min.js"></script>
        <script src="/public/assets/js/vendor/dataTables.checkboxes.min.js"></script>
        <!-- third party js ends -->

        <!-- demo app -->
        <script src="/public/assets/js/pages/demo.customers.js"></script>
        <!-- end demo js-->
 <script src="/public/assets/js/vendor/dropzone.min.js"></script>

    <!-- File upload js -->
    <script src="/public/assets/js/ui/component.fileupload.js"></script>
    </body>
</html>
